<?php if(!defined('BASEPATH')) exit('No direct script access allowed');

class Site_model extends CI_Model
{
    public function __construct() 
    { 
        parent::__construct(); 
    }
    
    public function check_hash($hash)
    {
        $tab['user_hash']   = '';
        $tab['user_active'] = 1;
        $wynik = $this->db
                ->where('user_hash',$hash)
                ->update('ut_users',$tab);
        if($this->db->affected_rows()>0)
            return TRUE;
        else
            return FALSE;
    }
}